package com.tuling.llmlangchain4j.config;

import dev.langchain4j.memory.chat.MessageWindowChatMemory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MemeryChatAssistantConfig {

    @Bean(name = "chatMemery")
    public MessageWindowChatMemory chatMemery() {
         MessageWindowChatMemory chatMemory = MessageWindowChatMemory.withMaxMessages(10);
        return chatMemory;
    }


}
